import $ from '../common';
Page({
  data: {
    info:[],
    noimg:$.noImage    
  },
  onLoad(e) {
    this.setData({
      zonecode:wx.getStorageSync('addresscode')||''
    })
    this.getstudentlist()
  },
  onShow() {},
  getstudentlist(){
      $.get('/user/students/certified',{
        zonecode:this.data.zonecode
      },res=>{
        this.setData({
          info:res.students
        })
      })
  },
  onReachBottom() {
  },
  switchchildren(e){
    const{ index}=e.currentTarget.dataset
    let arr= $.parent()
    arr.setData({
      idx:index,
      isSwitch:true
    })
    $.navigateBack()
  }
})